package com.atguigu.classroom.userClient;

import com.atguigu.classroom.model.user.UserInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Api(tags = "用户远程调用接口")
@Service
@FeignClient("service-user")
public interface UserInfoFeignClient {
    @ApiOperation(value = "获取多个用户信息")
    @PostMapping("/admin/user/userInfo/inner/getByIds")
    public List<UserInfo> getByIds(@RequestBody List<Long> ids);
}

